import * as Koa from 'koa'
import { home } from './routes/home'

const app = new Koa()

app.use(home.routes(), home.allowedMethods())

app.use(async (ctx) => {
  ctx.body = `
<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
Hello World !!
</body>
</html>
`
})

app.listen(3000)
console.log('listen on 3000')
